<%--
  Created by IntelliJ IDEA.
  User: 29960
  Date: 2022/8/26
  Time: 9:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%String path=request.getContextPath();%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>出入库记录</title>
    <link type="text/css" rel="stylesheet" href="<%=path%>/admin/car/fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="<%=path%>/admin/car/css/datepicker.css"/>
    <link type="text/css" rel="stylesheet" href="<%=path%>/admin/car/css/style.css"/>
</head>
<body>
<div class="main_box">
    <h2><span></span>出入库记录</h2>
    <form action="${pageContext.request.contextPath}/admin/findZy" method="post">
        <div class="search_box clearfix">
            <label class="f_left">开始日期：</label>
            <div class="date_box">
                <input type="text" name="start" id="start_date" readonly/>
                <i class="fa fa-calendar"></i>
            </div>
            <label class="f_left">结束日期：</label>
            <div class="date_box">
                <input type="text" name="end" id="end_date" readonly/>
                <i class="fa fa-calendar"></i>
            </div>
            <select class="f_left" name="history">
                <option value="1" name="history"><a href="${pageContext.request.contextPath}/admin/findZy">全部记录</a></option>
                <option value="2">入库记录</option>
                <option value="3">出库记录</option>
            </select>
            <input type="submit" value="搜索" class="btn blue_btn"/>
        </div>
    </form>
    <div class="cont_box">
        <table border="0" cellspacing="0" cellpadding="0" class="table" id="table_box">
            <thead>
            <tr>
                <th>消耗品</th>
                <th>出入库记录</th>
                <th>出入库时间</th>
            </tr>
            </thead>
            <c:forEach items="${crk}" var="crk">
            <tbody>
            <tr>
                <td>${crk.j_letem_name}</td>
                <td>${sj}</td>
                <td><c:if test="${crk.h_state==1}">${crk.h_Warehousing_time}</c:if><c:if test="${crk.h_state==0}">${crk.h_Delivery_time}</c:if></td>
            </tr>
<%--            <tr>--%>
<%--                <td>2</td>--%>
<%--                <td>89542233</td>--%>
<%--                <td>2017-03-09</td>--%>
<%--            </tr>--%>
            </tbody>
            </c:forEach>
        </table>
    </div>
</div>
<!--javascript include-->
<script src="<%=path%>/admin/car/js/jquery-2.2.1.min.js"></script>
<script src="<%=path%>/admin/car/js/jquery.dataTables.min.js"></script>
<script src="<%=path%>/admin/car/js/jquery.validate.min.js"></script>
<script src="<%=path%>/admin/car/js/bootstrap-datepicker.js"></script>
<script src="<%=path%>/admin/car/js/other.js"></script>
<script>
    $(function(){
        $("body").other({tableId:"#table_box",tableAas:[ 0,"desc"]});
    });
</script>
</body>
</html>
